#include <bits/stdc++.h>
using namespace std;

struct Point
{
	double x;
	double y;
}p[25*25];
map<pair<double,double>, int> line;
int main()
{
	int cnt = 0;
	int col = 20, row = 21;
	for (int i = 0; i < row; i++)
	{
		for (int j = 0; j < col; j++)
		{
			p[cnt].x = i;
			p[cnt++].y = j; 
		}
	}
	int linenum = col + row;
	for (int i = 0; i < cnt; i++)
	{
		for (int j = 0; j < cnt; j++)
		{
			if (p[i].x == p[j].x || p[i].y == p[j].y) continue;
			double k = (p[j].y-p[i].y)/(p[j].x-p[i].x);
			//double b = p[i].y-k*p[i].x;
			//double b = p[j].y-k*p[j].x;
			double b = (p[j].x*p[i].y-p[j].y*p[i].x)/(p[j].x-p[i].x);
			if (line[{k,b}]==0)
			{
				line[{k,b}]=1;
				linenum++;
			}
		}
	}
	cout << linenum << endl;
	return 0;
}
